﻿@model Rated.Website.Models.LoginModel
<section id="loginForm">
<h2>Enter your details to log in.</h2>
<div class="clearfix form loginform">
@using (Html.BeginForm(new { ReturnUrl =  ViewBag.ReturnUrl}))
{
    <fieldset>
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)
    
        <ol>
            <li class="clearfix">
                @Html.LabelFor(m => m.UserName)
                @Html.TextBoxFor(m => m.UserName)
                @Html.ValidationMessageFor(m => m.UserName)
            </li>
            <li class="clearfix">
                @Html.LabelFor(m => m.Password)
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </li>
            <li class="clearfix">
                @Html.CheckBoxFor(m => m.RememberMe, new { @class = "checkbox" })
                @Html.LabelFor(m => m.RememberMe, new { @class = "checkbox" })
            </li>
        </ol>
        <input type="submit" value="Log in" class="cta clearfix" id="loginButton" />

    <p style="clear:both; margin-top:15px;">
        No account? No problem - get your free account by registering @Html.ActionLink("Here", "Register", "Account").
    </p>
    </fieldset>
}
</div>
</section>
<section class="social" id="socialLoginForm">
    <h2>Or log in using your social media details</h2>
    @Html.Action("ExternalLoginsList", new { ReturnUrl = ViewBag.ReturnUrl })
</section>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
